package com.runfast.waimai.dao.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class RunfastActivity implements Serializable {
    private Integer id;

    private Integer busid;

    private String busname;

    private Date createtime;

    private Double discount;

    private Date endtime;

    private Double fulls;

    private Double lesss;

    private String name;

    /**
     * 活动内容 1满减  2打折3赠品4特价5满减免运费6优惠券7免部分配送费8新用户立减活动9首单立减活动10商户红包11下单返红包
     *店铺活动 6 7 8 9
     * 红包活动10 11
     * 商品活动1 2 3 4 5
     */
    private Integer ptype;

    private Date starttime;

    private Integer type;

    private String goodids;

    private String goodsname;

    private Integer agentid;

    private String agentname;

    private Integer stops;

    private String goods;

    private BigDecimal disprice;

    private String stanidsname;

    private Integer deleted;

    /**
     * 是否与其他活动同享
     */
    private Boolean shared;

    /**
     * 生效时间，数字1到7分别对应星期一到星期日，多个逗号分隔
     */
    private Integer week;

    /**
     * 是否限购
     */
    private Boolean isLimited;

    /**
     * 限购类型（超出后是否允许原价购买0否 1是）
     */
    private Integer limitType;

    /**
     * 限购数量
     */
    private Integer limitNum;

    /**
     * 生效时间段，每段时间逗号分隔
     */
    private String timeSpan;

    /**
     * 代理商补贴费用
     */
    private Double agentSubsidy;



    /**
     * 专区活动名称
     */
    private Integer specialType;

    /**
     * 活动专区名称
     */
    private String specialName;

    /**
     * 红包有效期
     */
    private Integer redValidDay;

    /**
     * 每个商家每天发放的红包数量
     */
    private Integer redTotalNum;

    /**
     * 每人在店内每天限领红包数量
     */
    private Integer redPersonNum;

    /**
     * 固定金额或者金额范围（逗号分隔）
     */
    private String redAmount;

    /**
     * 该红包已经被领取的数量
     */
    private Integer redTotalPickNum;

    private String stanids;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public RunfastActivity withId(Integer id) {
        this.setId(id);
        return this;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBusid() {
        return busid;
    }

    public RunfastActivity withBusid(Integer busid) {
        this.setBusid(busid);
        return this;
    }

    public void setBusid(Integer busid) {
        this.busid = busid;
    }

    public String getBusname() {
        return busname;
    }

    public RunfastActivity withBusname(String busname) {
        this.setBusname(busname);
        return this;
    }

    public void setBusname(String busname) {
        this.busname = busname == null ? null : busname.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public RunfastActivity withCreatetime(Date createtime) {
        this.setCreatetime(createtime);
        return this;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Double getDiscount() {
        return discount;
    }

    public RunfastActivity withDiscount(Double discount) {
        this.setDiscount(discount);
        return this;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Date getEndtime() {
        return endtime;
    }

    public RunfastActivity withEndtime(Date endtime) {
        this.setEndtime(endtime);
        return this;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Double getFulls() {
        return fulls;
    }

    public RunfastActivity withFulls(Double fulls) {
        this.setFulls(fulls);
        return this;
    }

    public void setFulls(Double fulls) {
        this.fulls = fulls;
    }

    public Double getLesss() {
        return lesss;
    }

    public RunfastActivity withLesss(Double lesss) {
        this.setLesss(lesss);
        return this;
    }

    public void setLesss(Double lesss) {
        this.lesss = lesss;
    }

    public String getName() {
        return name;
    }

    public RunfastActivity withName(String name) {
        this.setName(name);
        return this;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getPtype() {
        return ptype;
    }

    public RunfastActivity withPtype(Integer ptype) {
        this.setPtype(ptype);
        return this;
    }

    public void setPtype(Integer ptype) {
        this.ptype = ptype;
    }

    public Date getStarttime() {
        return starttime;
    }

    public RunfastActivity withStarttime(Date starttime) {
        this.setStarttime(starttime);
        return this;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Integer getType() {
        return type;
    }

    public RunfastActivity withType(Integer type) {
        this.setType(type);
        return this;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getGoodids() {
        return goodids;
    }

    public RunfastActivity withGoodids(String goodids) {
        this.setGoodids(goodids);
        return this;
    }

    public void setGoodids(String goodids) {
        this.goodids = goodids == null ? null : goodids.trim();
    }

    public String getGoodsname() {
        return goodsname;
    }

    public RunfastActivity withGoodsname(String goodsname) {
        this.setGoodsname(goodsname);
        return this;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname == null ? null : goodsname.trim();
    }

    public Integer getAgentid() {
        return agentid;
    }

    public RunfastActivity withAgentid(Integer agentid) {
        this.setAgentid(agentid);
        return this;
    }

    public void setAgentid(Integer agentid) {
        this.agentid = agentid;
    }

    public String getAgentname() {
        return agentname;
    }

    public RunfastActivity withAgentname(String agentname) {
        this.setAgentname(agentname);
        return this;
    }

    public void setAgentname(String agentname) {
        this.agentname = agentname == null ? null : agentname.trim();
    }

    public Integer getStops() {
        return stops;
    }

    public RunfastActivity withStops(Integer stops) {
        this.setStops(stops);
        return this;
    }

    public void setStops(Integer stops) {
        this.stops = stops;
    }

    public String getGoods() {
        return goods;
    }

    public RunfastActivity withGoods(String goods) {
        this.setGoods(goods);
        return this;
    }

    public void setGoods(String goods) {
        this.goods = goods == null ? null : goods.trim();
    }

    public BigDecimal getDisprice() {
        return disprice;
    }

    public RunfastActivity withDisprice(BigDecimal disprice) {
        this.setDisprice(disprice);
        return this;
    }

    public void setDisprice(BigDecimal disprice) {
        this.disprice = disprice;
    }

    public String getStanidsname() {
        return stanidsname;
    }

    public RunfastActivity withStanidsname(String stanidsname) {
        this.setStanidsname(stanidsname);
        return this;
    }

    public void setStanidsname(String stanidsname) {
        this.stanidsname = stanidsname == null ? null : stanidsname.trim();
    }

    public Integer getDeleted() {
        return deleted;
    }

    public RunfastActivity withDeleted(Integer deleted) {
        this.setDeleted(deleted);
        return this;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Boolean getShared() {
        return shared;
    }

    public RunfastActivity withShared(Boolean shared) {
        this.setShared(shared);
        return this;
    }

    public void setShared(Boolean shared) {
        this.shared = shared;
    }

    public Integer getWeek() {
        return week;
    }

    public RunfastActivity withWeek(Integer week) {
        this.setWeek(week);
        return this;
    }

    public void setWeek(Integer week) {
        this.week = week;
    }

    public Boolean getIsLimited() {
        return isLimited;
    }

    public RunfastActivity withIsLimited(Boolean isLimited) {
        this.setIsLimited(isLimited);
        return this;
    }

    public void setIsLimited(Boolean isLimited) {
        this.isLimited = isLimited;
    }

    public Integer getLimitType() {
        return limitType;
    }

    public RunfastActivity withLimitType(Integer limitType) {
        this.setLimitType(limitType);
        return this;
    }

    public void setLimitType(Integer limitType) {
        this.limitType = limitType;
    }

    public Integer getLimitNum() {
        return limitNum;
    }

    public RunfastActivity withLimitNum(Integer limitNum) {
        this.setLimitNum(limitNum);
        return this;
    }

    public void setLimitNum(Integer limitNum) {
        this.limitNum = limitNum;
    }

    public String getTimeSpan() {
        return timeSpan;
    }

    public RunfastActivity withTimeSpan(String timeSpan) {
        this.setTimeSpan(timeSpan);
        return this;
    }

    public void setTimeSpan(String timeSpan) {
        this.timeSpan = timeSpan == null ? null : timeSpan.trim();
    }

    public Double getAgentSubsidy() {
        return agentSubsidy;
    }

    public RunfastActivity withAgentSubsidy(Double agentSubsidy) {
        this.setAgentSubsidy(agentSubsidy);
        return this;
    }

    public void setAgentSubsidy(Double agentSubsidy) {
        this.agentSubsidy = agentSubsidy;
    }

    public Integer getSpecialType() {
        return specialType;
    }

    public RunfastActivity withSpecialType(Integer specialType) {
        this.setSpecialType(specialType);
        return this;
    }

    public void setSpecialType(Integer specialType) {
        this.specialType = specialType;
    }

    public String getSpecialName() {
        return specialName;
    }

    public RunfastActivity withSpecialName(String specialName) {
        this.setSpecialName(specialName);
        return this;
    }

    public void setSpecialName(String specialName) {
        this.specialName = specialName == null ? null : specialName.trim();
    }

    public Integer getRedValidDay() {
        return redValidDay;
    }

    public RunfastActivity withRedValidDay(Integer redValidDay) {
        this.setRedValidDay(redValidDay);
        return this;
    }

    public void setRedValidDay(Integer redValidDay) {
        this.redValidDay = redValidDay;
    }

    public Integer getRedTotalNum() {
        return redTotalNum;
    }

    public RunfastActivity withRedTotalNum(Integer redTotalNum) {
        this.setRedTotalNum(redTotalNum);
        return this;
    }

    public void setRedTotalNum(Integer redTotalNum) {
        this.redTotalNum = redTotalNum;
    }

    public Integer getRedPersonNum() {
        return redPersonNum;
    }

    public RunfastActivity withRedPersonNum(Integer redPersonNum) {
        this.setRedPersonNum(redPersonNum);
        return this;
    }

    public void setRedPersonNum(Integer redPersonNum) {
        this.redPersonNum = redPersonNum;
    }

    public String getRedAmount() {
        return redAmount;
    }

    public RunfastActivity withRedAmount(String redAmount) {
        this.setRedAmount(redAmount);
        return this;
    }

    public void setRedAmount(String redAmount) {
        this.redAmount = redAmount == null ? null : redAmount.trim();
    }

    public Integer getRedTotalPickNum() {
        return redTotalPickNum;
    }

    public RunfastActivity withRedTotalPickNum(Integer redTotalPickNum) {
        this.setRedTotalPickNum(redTotalPickNum);
        return this;
    }

    public void setRedTotalPickNum(Integer redTotalPickNum) {
        this.redTotalPickNum = redTotalPickNum;
    }

    public String getStanids() {
        return stanids;
    }

    public RunfastActivity withStanids(String stanids) {
        this.setStanids(stanids);
        return this;
    }

    public void setStanids(String stanids) {
        this.stanids = stanids == null ? null : stanids.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", busid=").append(busid);
        sb.append(", busname=").append(busname);
        sb.append(", createtime=").append(createtime);
        sb.append(", discount=").append(discount);
        sb.append(", endtime=").append(endtime);
        sb.append(", fulls=").append(fulls);
        sb.append(", lesss=").append(lesss);
        sb.append(", name=").append(name);
        sb.append(", ptype=").append(ptype);
        sb.append(", starttime=").append(starttime);
        sb.append(", type=").append(type);
        sb.append(", goodids=").append(goodids);
        sb.append(", goodsname=").append(goodsname);
        sb.append(", agentid=").append(agentid);
        sb.append(", agentname=").append(agentname);
        sb.append(", stops=").append(stops);
        sb.append(", goods=").append(goods);
        sb.append(", disprice=").append(disprice);
        sb.append(", stanidsname=").append(stanidsname);
        sb.append(", deleted=").append(deleted);
        sb.append(", shared=").append(shared);
        sb.append(", week=").append(week);
        sb.append(", isLimited=").append(isLimited);
        sb.append(", limitType=").append(limitType);
        sb.append(", limitNum=").append(limitNum);
        sb.append(", timeSpan=").append(timeSpan);
        sb.append(", agentSubsidy=").append(agentSubsidy);
        sb.append(", specialType=").append(specialType);
        sb.append(", specialName=").append(specialName);
        sb.append(", redValidDay=").append(redValidDay);
        sb.append(", redTotalNum=").append(redTotalNum);
        sb.append(", redPersonNum=").append(redPersonNum);
        sb.append(", redAmount=").append(redAmount);
        sb.append(", redTotalPickNum=").append(redTotalPickNum);
        sb.append(", stanids=").append(stanids);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}